import {request} from "./request";

export function getCommentReplies(comment_id) {
  return request({
    method: "get",
    url: `router.php?t=comment/getReplies/${comment_id}/`
  })
}

export function postComment(obj) {
  return request({
    method: "post",
    url: `router.php?s=comment/`,
    data: JSON.stringify(obj)
  })
}

export function deleteComment(comment_id) {
  return request({
    method: "delete",
    url: `router.php?s=comment/${comment_id}/`
  })
}
